This resource address modifies the properties of the named foreign cluster. Any change to a foreign bootstrap host will be treated as an attempt to recouple.
URL Parameters | |
---|---|
format | The format of the returned data. Can be either
json or xml (default). This parameter overrides the Accept
header if both are present. |
Upon success, MarkLogic Server returns status code 204 (No content). If the payload is malformed or the foreign cluster does not exist, a status code of 400 (Bad Request) is returned. A status code of 401 (Unauthorized) is returned if the user does not have the necessary privileges.
manage-admin
role, or the following
privilege: http://marklogic.com/xdmp/privileges/manage-admin
Note:
The properties described here are for XML payloads. In general they are the same for JSON,
with the exception that, in JSON, foreign-bootstrap-hosts
is expressed in
singular form. For example, in JSON, foreign-bootstrap-hosts
is instead
foreign-bootstrap-host
and the format is:
"foreign-bootstrap-host":[{"foreign-host-id", "foreign-host-name",
"foreign-connect-port"}]
.
foreign-cluster-id
foreign-cluster-name
xdqp-timeout
host-timeout
foreign-ssl-certificate
xdqp-ssl-enabled
xdqp-ssl-allow-sslv3
xdqp-ssl-allow-tls
xdqp-ssl-ciphers
foreign-bootstrap-hosts
This is a complex structure with the following children:
foreign-bootstrap-host
This is a complex structure with the following children:
foreign-host-id
foreign-host-name
foreign-connect-port
foreign-protocol
curl -X PUT --anyauth -u admin:admin --header "Content-Type:application/json" \ -d '{"xdqp-ssl-allow-sslv3":false}' \ http://localhost:8002/manage/v2/clusters/127.0.0.2-cluster/properties ==> Sets the "xdqp-ssl-allow-sslv3" property to false on the foreign cluster, "127.0.0.2-cluster."
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.